﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tomahawk.Runtime.Rendering.Materials;
using Microsoft.Xna.Framework.Content;
using System.Xml.Serialization;

namespace Tomahawk.Runtime.ContentLoaders
{
    class MaterialReader : ContentTypeReader<SASMaterialCollection>
    {
        protected override SASMaterialCollection Read(ContentReader input, SASMaterialCollection existingInstance)
        {
            XmlSerializer x = new XmlSerializer(typeof(SASMaterialCollection));
            SASMaterialCollection output = (SASMaterialCollection)x.Deserialize(input.BaseStream);

            return output;
        }
    }
}
